package com.example.front.service;

import com.example.gok_mall.entity.Category;
import com.example.gok_mall.reponseData.ResultData;

import java.util.List;

public interface ICategoryService {
    //添加品类
    ResultData addCategory(String categoryName, Integer parentId);

    //更新品类
    ResultData updateCategoryName(Integer categoryId,String categoryName);

    //获取品类子节点(平级)
    ResultData<List<Category>> getChildrenParallelCategory(Integer categoryId);

    //递归查询查询该节点和子节点的Id
    ResultData<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);
}
